% TEST_ID: LANG-CONTROL-FLOW-0010
% CATEGORY: language/control-flow
% if-else 语句

function test_if_else
    x = 1;
    if 1 > 0
        i = 5;
        t = 10;
    elseif t == 5
        x = 9
    elseif t == 10
        x = 12
    end
    assert(i == 5);
    assert(t == 10);
    assert(x == 1);

    if 1 < 0
        i = 15;
        t = 20
    elseif t == 5
        x = 9
    elseif t == 10
        x = 12
    end
    assert(i == 5);
    assert(t == 10);
    assert(x == 12);
end

